package com.zuoshenge.user.controller;

import com.zuoshenge.bean.Result;
import com.zuoshenge.user.entity.TUser;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("t")
@CrossOrigin(origins = "http://localhost:8080")
public class TestController {

    @PostMapping("/t")
    public Result<TUser> test(@RequestBody TUser tUser) {
        System.out.println("ok");
        System.out.println(tUser.toString());
        tUser.setUserNickname("jjjjjjjjjj");
        return Result.ok(tUser);
    }
}
